package cn.com.self.security.ignore;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author lirong
 * @ClassName: CustomConfig
 * @Description: 自定义的配置
 * @date 2019-07-29 17:06
 */
@Configuration
@ConfigurationProperties(prefix = "custom.config")
public class CustomConfig {
    /**
     * 不需要拦截的地址
     */
    private IgnoreConfig ignores;

    public IgnoreConfig getIgnores() {
        return ignores;
    }

    public void setIgnores(IgnoreConfig ignores) {
        this.ignores = ignores;
        System.out.println("ignores值："+ignores.getPattern().toString());
    }
}
